package br.com.gfkauer.model.dao;


import java.util.HashMap;
import java.util.Map;

import br.com.gfkauer.model.entity.Client;

public class ClientDAO extends GenericDAO<Client>{

	private static final long serialVersionUID = 1L;
	
	public ClientDAO(){
		super(Client.class);
	}
	
	public Client findClientByDoc(int clientId){
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("clientId", clientId);
		
		return super.findOneResult(Client.FIND_CLIENT_BY_DOC, parameters);
	}
}
